home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Python / getcompiler.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  360 b   |  28 lines

  1. /* Return the compiler identification, if possible. */
  2.  
  3. #include "Python.h"
  4.  
  5. #ifndef COMPILER
  6.  
  7. #ifdef __GNUC__
  8. #define COMPILER " [GCC " __VERSION__ "]"
  9. #endif
  10.  
  11. #endif /* !COMPILER */
  12.  
  13. #ifndef COMPILER
  14.  
  15. #ifdef __cplusplus
  16. #define COMPILER "[C++]"
  17. #else
  18. #define COMPILER "[C]"
  19. #endif
  20.  
  21. #endif /* !COMPILER */
  22.  
  23. const char *
  24. Py_GetCompiler()
  25. {
  26.     return COMPILER;
  27. }
  28.